package first.group.ssh.packet;

import first.group.ssh.SSHConsts;
import first.group.ssh.packet.writer.BigIntegerWriter;
import java.math.BigInteger;
import java.nio.ByteBuffer;

public class DiffieHellmanGroupExchangeInitPacket extends Packet {

    public final BigInteger e;

    public DiffieHellmanGroupExchangeInitPacket(BigInteger e) {
        super(SSHConsts.SSH_MSG_KEX_DH_GEX_INIT);
        this.e = e;
    }

    @Override
    public void write(ByteBuffer buffer) {
        BigIntegerWriter.writeBigInteger(buffer, e);
    }
}
